package com.elitel;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
@RestController
public class Serv {
    @PostMapping("a")
    public Map<String, Object> getCategory(@RequestHeader String token,
                                           @RequestParam String aa,
                                           @RequestParam String cc,
                                           @RequestBody Object body) throws IOException {
        Map<String,Object> map = new HashMap<>();
        map.put("head", token);
        map.put("param", aa);
        map.put("paramAdd", cc);
        map.put("body", body);
        return map;
    }

    public static void main(String[] args) {
        SpringApplication.run(Serv.class, args);
    }


}